package util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class LoadProperties {
	
	public static String KEY_OUTPUT_PATH = "output_path";
	public static String FILE_OUTPUT_PROPERTIES = "output.properties";
	
	public static String getSystemdefaultValue (String key,String fileName) {
		LoadProperties loadProp = new LoadProperties();
		InputStream in = loadProp.getClass().getResourceAsStream("/"+fileName);
		Properties prop = new Properties();
		try {
			prop.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return prop.getProperty(key, "none");
	}
}
